import request from '@/utils/request'

// 查询填写地配置列表
export function listAddress(query) {
  return request({
    url: '/wms/address/list',
    method: 'get',
    params: query
  })
}

export function treeselect(query) {
  return request({
    url: '/wms/address/treeselect',
    method: 'get',
    params: query
  })
}

// 查询填写地配置详细
export function getAddress(id) {
  return request({
    url: '/wms/address/' + id,
    method: 'get'
  })
}

// 新增填写地配置
export function addAddress(data) {
  return request({
    url: '/wms/address',
    method: 'post',
    data: data
  })
}

// 修改填写地配置
export function updateAddress(data) {
  return request({
    url: '/wms/address',
    method: 'put',
    data: data
  })
}

// 删除填写地配置
export function delAddress(id) {
  return request({
    url: '/wms/address/' + id,
    method: 'delete'
  })
}
